Skip to content

Commit 7914e40

Browse files
fix: confirm button is now disabled if password is empty on staking confirmation screen (#1430)
* fix: confirm button is now disabled if password is empty on staking confirmation screen * ci: downgrade chromaui/action to v10 --------- Co-authored-by: Przemysław Włodek <przem.wlodek.github@gmail.com>
1 parent 355c2e6 commit 7914e40

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/actions/chromatic/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ runs:
2323

2424
- name: Publish to Chromatic
2525
if: github.ref != 'refs/heads/main'
26-
uses: chromaui/action@v1
26+
uses: chromaui/action@v10
2727
with:
2828
projectToken: ${{ inputs.TOKEN }}
2929
workingDir: ./${{ inputs.DIR }}
@@ -33,7 +33,7 @@ runs:
3333

3434
- name: Publish to Chromatic and auto accept changes
3535
if: github.ref == 'refs/heads/main'
36-
uses: chromaui/action@v1
36+
uses: chromaui/action@v10
3737
with:
3838
projectToken: ${{ inputs.TOKEN }}
3939
autoAcceptChanges: true

packages/staking/src/features/Drawer/SignConfirmation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const SignConfirmationFooter = (): ReactElement => {
8787
const { analytics } = useOutsideHandles();
8888
const { t } = useTranslation();
8989

90-
const isSubmitDisabled = useMemo(() => isSubmitingTx || !password, [isSubmitingTx, password]);
90+
const isSubmitDisabled = useMemo(() => isSubmitingTx || !password?.value, [isSubmitingTx, password?.value]);
9191

9292
const cleanPasswordInput = useCallback(() => {
9393
removePassword();

0 commit comments

Comments
 (0)