Skip to content

Commit

Permalink
fix: use ??
Browse files Browse the repository at this point in the history
  • Loading branch information
montelaidev committed Jun 26, 2024
1 parent 176e929 commit 38b767b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/hooks/useUserPreferencedCurrency.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { useMultichainSelector } from './useMultichainSelector';
*/
export function useUserPreferencedCurrency(type, opts = {}) {
const selectedAccount = useSelector(getSelectedInternalAccount);
const account = opts.account || selectedAccount;
const account = opts.account ?? selectedAccount;
const nativeCurrency = useMultichainSelector(
getMultichainNativeCurrency,
account,
Expand Down

0 comments on commit 38b767b

Please sign in to comment.