Skip to content

Commit

Permalink
Merge branch 'main' into lykhoyda/update_settings_page
Browse files Browse the repository at this point in the history
  • Loading branch information
Lykhoyda authored Sep 22, 2023
2 parents 38b3d8d + 707011a commit 76da7dc
Show file tree
Hide file tree
Showing 5 changed files with 229 additions and 143 deletions.
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@walletconnect/web3wallet": "^1.8.8",
"dayjs": "^1.11.9",
"eslint-plugin-ternary": "^2.0.0",
"graphql": "^16.7.1",
"graphql": "^16.8.1",
"graphql-request": "^6.1.0",
"graphql-ws": "^5.14.0",
"react": "18.2.0",
Expand Down
8 changes: 5 additions & 3 deletions packages/ui/src/pages/Creation/Summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ interface Props {
isBalanceError?: boolean
selectedMultisig?: MultiProxy['multisigs'][0] // this is only relevant for swaps
withProxy?: boolean
isSubmittingExtrinsic?: boolean
}

const Summary = ({
Expand All @@ -34,7 +35,8 @@ const Summary = ({
balanceMin,
isBalanceError,
selectedMultisig,
withProxy = true
withProxy = true,
isSubmittingExtrinsic = false
}: Props) => {
const { ownAddressList } = useAccounts()
const { chainInfo } = useApi()
Expand Down Expand Up @@ -118,8 +120,8 @@ const Summary = ({
possibleSigners={possibleSigners}
/>
</Box>
{isBalanceError && balanceMin && (
<Alert severity="warning">
{isBalanceError && balanceMin && !isSubmittingExtrinsic && (
<Alert severity="error">
The selected signer requires at least{' '}
{formatBnBalance(balanceMin, chainInfo?.tokenDecimals, {
tokenSymbol: chainInfo?.tokenSymbol
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/pages/Creation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ const MultisigCreation = ({ className }: Props) => {
isBalanceError={!hasSignerEnoughFunds}
balanceMin={neededBalance}
withProxy={withProxy}
isSubmittingExtrinsic={isSubmitted}
/>
</Grid>
)}
Expand Down
Loading

0 comments on commit 76da7dc

Please sign in to comment.