Skip to content

Commit

Permalink
Fix display of balance in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
behrang committed Oct 8, 2023
1 parent d999e90 commit c3f90da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion src/Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ export class Model {
}

initTonConnect = (buttonRootId: string) => {
console.log(buttonRootId, document.getElementById(buttonRootId), document.getElementById(buttonRootId) != null)
if (document.getElementById(buttonRootId) != null) {
this.connectWallet(buttonRootId)
} else {
Expand Down
10 changes: 1 addition & 9 deletions src/StakeUnstake.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ interface Props {
}

const StakeUnstake = observer(({ model }: Props) => {
let maxHeight = ' max-h-28'
if (model.unstakingInProgressDetails != null || model.stakingInProgressDetails.length > 0) {
maxHeight = ' max-h-32'
}
if (model.unstakingInProgressDetails != null && model.stakingInProgressDetails.length > 0) {
maxHeight = ' max-h-36'
}

return (
<div className='container mx-auto font-body text-brown dark:text-dark-50'>
<p className='my-8 text-center'>
Expand Down Expand Up @@ -57,7 +49,7 @@ const StakeUnstake = observer(({ model }: Props) => {
<div
className={
'transition-all motion-reduce:transition-none' +
(model.isWalletConnected ? maxHeight : ' max-h-0 overflow-hidden')
(model.isWalletConnected ? ' max-h-96' : ' max-h-0 overflow-hidden')
}
>
<div className='mx-4 -mb-10 rounded-t-2xl bg-brown px-8 pb-10 pt-4 text-sm text-white dark:bg-dark-600 dark:text-dark-50'>
Expand Down

0 comments on commit c3f90da

Please sign in to comment.