fix type errors

This commit is contained in:
plebeius
2026-01-06 18:10:58 +01:00
parent eb7a92932e
commit 5a072a0307
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import { getFormattedTimeAgo } from '../lib/utils/time-utils';
import useSubplebbitOfflineStore from '../stores/use-subplebbit-offline-store'; import useSubplebbitOfflineStore from '../stores/use-subplebbit-offline-store';
import useSubplebbitsLoadingStartTimestamps from '../stores/use-subplebbits-loading-start-timestamps-store'; import useSubplebbitsLoadingStartTimestamps from '../stores/use-subplebbits-loading-start-timestamps-store';
const useIsSubplebbitOffline = (subplebbit: Subplebbit) => { const useIsSubplebbitOffline = (subplebbit: Subplebbit | undefined) => {
const { t } = useTranslation(); const { t } = useTranslation();
const { address, state, updatedAt, updatingState } = subplebbit || {}; const { address, state, updatedAt, updatingState } = subplebbit || {};
const { subplebbitOfflineState, setSubplebbitOfflineState, initializesubplebbitOfflineState } = useSubplebbitOfflineStore(); const { subplebbitOfflineState, setSubplebbitOfflineState, initializesubplebbitOfflineState } = useSubplebbitOfflineStore();
+1 -1
View File
@@ -72,7 +72,7 @@ const BoardRulesDisplay = ({ subplebbitAddress, defaultSubplebbits }: { subplebb
</p> </p>
) : rules && rules.length > 0 ? ( ) : rules && rules.length > 0 ? (
<ol> <ol>
{rules.map((rule, index) => ( {rules.map((rule: string, index: number) => (
<li key={index}>{rule}</li> <li key={index}>{rule}</li>
))} ))}
</ol> </ol>