Skip to content

Commit

Permalink
move translation initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Colon committed Dec 14, 2024
1 parent 1e8292a commit a25fd55
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hooks/DAO/useSearchDao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type ResolvedAddressWithPrefix = {
chainId: number;
};
export const useSearchDao = () => {
const { t } = useTranslation('dashboard');
const { resolveAddressMultiChain, isLoading: isAddressLoading } = useResolveAddressMultiChain();
const [searchString, setSearchString] = useState<string>('');
const [errorMessage, setErrorMessage] = useState<string>();
Expand Down Expand Up @@ -50,8 +51,6 @@ export const useSearchDao = () => {
[findSafes, resolveAddressMultiChain],
);

const { t } = useTranslation('dashboard');

useEffect(() => {
setErrorMessage(undefined);
setSafeResolvedAddressesWithPrefix([]);
Expand Down

0 comments on commit a25fd55

Please sign in to comment.