diff --git a/apps/stats-dapp/src/containers/KeygenTable/KeygenTable.tsx b/apps/stats-dapp/src/containers/KeygenTable/KeygenTable.tsx index 311e302d2..e42200f77 100644 --- a/apps/stats-dapp/src/containers/KeygenTable/KeygenTable.tsx +++ b/apps/stats-dapp/src/containers/KeygenTable/KeygenTable.tsx @@ -310,7 +310,7 @@ export const KeygenTable: FC = () => { column.getFacetedMinMaxValues()?.[0] ?? 0, column.getFacetedMinMaxValues()?.[1] ?? 0, ] - : column.getFacetedMinMaxValues() ?? [0, 0], + : (column.getFacetedMinMaxValues() ?? [0, 0]), [], ); diff --git a/apps/tangle-dapp/app/restake/deposit/ActionButton.tsx b/apps/tangle-dapp/app/restake/deposit/ActionButton.tsx index 1d1431516..ac0e2a010 100644 --- a/apps/tangle-dapp/app/restake/deposit/ActionButton.tsx +++ b/apps/tangle-dapp/app/restake/deposit/ActionButton.tsx @@ -79,7 +79,7 @@ export default function ActionButton({ isDisabled={!isValid || displayError !== undefined} isFullWidth > - {displayError ?? operatorAccountId + {(displayError ?? operatorAccountId) ? 'Deposit + Delegate' : 'Deposit'} diff --git a/apps/tangle-dapp/containers/ManageProfileModalContainer/Independent/IndependentAllocationInput.tsx b/apps/tangle-dapp/containers/ManageProfileModalContainer/Independent/IndependentAllocationInput.tsx index 8733b720d..fa87f3f6b 100644 --- a/apps/tangle-dapp/containers/ManageProfileModalContainer/Independent/IndependentAllocationInput.tsx +++ b/apps/tangle-dapp/containers/ManageProfileModalContainer/Independent/IndependentAllocationInput.tsx @@ -160,7 +160,7 @@ const IndependentAllocationInput: FC = ({ title="Total Restake" actions={actions} dropdownBody={hasDropdownBody ? dropdownBody : undefined} - errorMessage={validate ? errorMessage ?? undefined : undefined} + errorMessage={validate ? (errorMessage ?? undefined) : undefined} chipText={service ?? 'Select role'} chipColor={ service !== null ? getChipColorOfServiceType(service) : undefined diff --git a/apps/tangle-dapp/containers/RecentTxContainer/RecentTxContainer.tsx b/apps/tangle-dapp/containers/RecentTxContainer/RecentTxContainer.tsx index 162f4ff23..6729bfe03 100644 --- a/apps/tangle-dapp/containers/RecentTxContainer/RecentTxContainer.tsx +++ b/apps/tangle-dapp/containers/RecentTxContainer/RecentTxContainer.tsx @@ -20,7 +20,7 @@ const RecentTxContainer: FC = () => { const explorerUrl = useMemo(() => { return isEvm ? network.evmExplorerUrl - : network.nativeExplorerUrl ?? network.polkadotJsDashboardUrl; + : (network.nativeExplorerUrl ?? network.polkadotJsDashboardUrl); }, [ isEvm, network.evmExplorerUrl, diff --git a/apps/tangle-dapp/context/BridgeTxQueueContext.tsx b/apps/tangle-dapp/context/BridgeTxQueueContext.tsx index 026bb52aa..549baffd2 100644 --- a/apps/tangle-dapp/context/BridgeTxQueueContext.tsx +++ b/apps/tangle-dapp/context/BridgeTxQueueContext.tsx @@ -224,7 +224,7 @@ const getTxQueueFromLocalStorage = ( txQueueByAccFromLocalStorage: Optional | null, ) => { const bridgeTxQueueByAcc = txQueueByAccFromLocalStorage - ? txQueueByAccFromLocalStorage.value ?? null + ? (txQueueByAccFromLocalStorage.value ?? null) : null; const cachedTxQueue = bridgeTxQueueByAcc?.[activeAccountAddress] ?? []; diff --git a/apps/tangle-dapp/hooks/useExplorerUrl.ts b/apps/tangle-dapp/hooks/useExplorerUrl.ts index 61d81315c..77efbe934 100644 --- a/apps/tangle-dapp/hooks/useExplorerUrl.ts +++ b/apps/tangle-dapp/hooks/useExplorerUrl.ts @@ -29,7 +29,7 @@ const useExplorerUrl = () => { ? explorerUrl_ : isEvm ? network.evmExplorerUrl - : network.nativeExplorerUrl ?? network.polkadotJsDashboardUrl; + : (network.nativeExplorerUrl ?? network.polkadotJsDashboardUrl); if (explorerUrl === undefined) { return null; diff --git a/libs/abstract-api-provider/src/vanchor/bridge-api.ts b/libs/abstract-api-provider/src/vanchor/bridge-api.ts index b5fb3b4ff..38e2e8c57 100644 --- a/libs/abstract-api-provider/src/vanchor/bridge-api.ts +++ b/libs/abstract-api-provider/src/vanchor/bridge-api.ts @@ -58,7 +58,7 @@ export abstract class BridgeApi< getTokenTarget(typedChainId: number): string | null { const activeBridgeAsset = this.getCurrency(); return activeBridgeAsset - ? activeBridgeAsset.getAddress(typedChainId) ?? null + ? (activeBridgeAsset.getAddress(typedChainId) ?? null) : null; } diff --git a/libs/api-provider-environment/src/store/modules/ui.ts b/libs/api-provider-environment/src/store/modules/ui.ts index 387f21c91..bdadec70b 100644 --- a/libs/api-provider-environment/src/store/modules/ui.ts +++ b/libs/api-provider-environment/src/store/modules/ui.ts @@ -31,7 +31,9 @@ const initState: UIData = { breadcrumb: [], pageTitle: '__empty', subMenu: null, - theme: isBrowser() ? window.localStorage.getItem('_theme') ?? 'dark' : 'dark', + theme: isBrowser() + ? (window.localStorage.getItem('_theme') ?? 'dark') + : 'dark', }; const reducer = (state: UIData, action: UIAction): UIData => { diff --git a/libs/webb-ui-components/src/components/FeeDetails/FeeDetails.tsx b/libs/webb-ui-components/src/components/FeeDetails/FeeDetails.tsx index b721e673a..e335abd18 100644 --- a/libs/webb-ui-components/src/components/FeeDetails/FeeDetails.tsx +++ b/libs/webb-ui-components/src/components/FeeDetails/FeeDetails.tsx @@ -104,7 +104,7 @@ const FeeDetails = forwardRef( {isTotalLoading ? ( ) : ( - totalFeeCmp ?? ( + (totalFeeCmp ?? ( <> {typeof totalFee === 'number' @@ -119,7 +119,7 @@ const FeeDetails = forwardRef( )} - ) + )) )} ( {buttonProps.children} ) : ( - buttonProps.children ?? 'Deposit' + (buttonProps.children ?? 'Deposit') )} ) : ( diff --git a/libs/webb-ui-components/src/hooks/useDarkMode.ts b/libs/webb-ui-components/src/hooks/useDarkMode.ts index a2cc20be1..bdd388882 100644 --- a/libs/webb-ui-components/src/hooks/useDarkMode.ts +++ b/libs/webb-ui-components/src/hooks/useDarkMode.ts @@ -55,7 +55,7 @@ export function useDarkMode( if (!isBrowser()) return; const _nextThemeMode = - nextThemeMode ?? theme === 'dark' ? 'light' : 'dark'; + (nextThemeMode ?? theme === 'dark') ? 'light' : 'dark'; if (_nextThemeMode === theme) return; diff --git a/yarn.lock b/yarn.lock index 0788fbba7..5daf2db15 100644 --- a/yarn.lock +++ b/yarn.lock @@ -37807,7 +37807,7 @@ __metadata: languageName: node linkType: hard -"prettier-fallback@npm:prettier@^3, prettier@npm:^3.1.1, prettier@npm:^3.2.5": +"prettier-fallback@npm:prettier@^3": version: 3.3.2 resolution: "prettier@npm:3.3.2" bin: @@ -37816,6 +37816,15 @@ __metadata: languageName: node linkType: hard +"prettier@npm:^3.1.1, prettier@npm:^3.2.5": + version: 3.3.3 + resolution: "prettier@npm:3.3.3" + bin: + prettier: bin/prettier.cjs + checksum: 10c0/b85828b08e7505716324e4245549b9205c0cacb25342a030ba8885aba2039a115dbcf75a0b7ca3b37bc9d101ee61fab8113fc69ca3359f2a226f1ecc07ad2e26 + languageName: node + linkType: hard + "pretty-bytes@npm:^5.6.0": version: 5.6.0 resolution: "pretty-bytes@npm:5.6.0"