Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/staking/src/components/Root/i18n-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ export const I18nProvider = (
() =>
isSSR
? DEFAULT_LOCALE
: window.navigator.languages.find((locale) => {
: (window.navigator.languages.find((locale) => {
const language = parse(locale).language;
return (
language !== undefined &&
language !== null &&
SUPPORTED_LANGUAGES.has(language)
);
}) ?? DEFAULT_LOCALE,
}) ?? DEFAULT_LOCALE),
[isSSR],
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ export const WormholeInstructionView = ({
? parsedInstruction.args[key]
: parsedInstruction.args[key] instanceof
Uint8Array
? parsedInstruction.args[key].toString(
'hex'
)
? parsedInstruction.args[key].toString()
: typeof parsedInstruction.args[key] ===
'bigint'
? parsedInstruction.args[key].toString()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ export const Proposal = ({
{typeof instruction.args[key] === 'string'
? instruction.args[key]
: instruction.args[key] instanceof Uint8Array
? instruction.args[key].toString('hex')
? instruction.args[key].toString()
: typeof instruction.args[key] === 'bigint'
? instruction.args[key].toString()
: JSON.stringify(instruction.args[key])}
Expand Down
Loading
Loading