Skip to content

Commit

Permalink
improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
benisgold committed Mar 5, 2024
1 parent 83c23fa commit bf27dea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/screens/mints/MintSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ const MintSheet = () => {
const [ensName, setENSName] = useState<string>('');
const [mintStatus, setMintStatus] = useState<'none' | 'minting' | 'minted' | 'error'>('none');
const txRef = useRef<string>();
const [isGasReady, setIsGasReady] = useState<boolean>(false);

const { data: ensAvatar } = useENSAvatar(ensName, {
enabled: Boolean(ensName),
Expand Down Expand Up @@ -287,6 +288,7 @@ const MintSheet = () => {
if (txSimEstimate) {
setGasError(false);
updateTxFee(txSimEstimate, null);
setIsGasReady(true);
}
},
});
Expand Down Expand Up @@ -631,6 +633,7 @@ const MintSheet = () => {
horizontalPadding={0}
currentNetwork={currentNetwork}
theme={'dark'}
loading={!isGasReady}
marginBottom={0}
/>
</Box>
Expand Down

0 comments on commit bf27dea

Please sign in to comment.