Skip to content

Commit

Permalink
updates copy on GrantAccess and auth entry continue button
Browse files Browse the repository at this point in the history
  • Loading branch information
aristidesstaffieri committed Feb 15, 2024
1 parent 5537938 commit a530ab4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extension/src/popup/views/GrantAccess/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const GrantAccess = () => {
)}
>
<div className="GrantAccess__SigningWith">
<h5>Signing with</h5>
<h5>Connecting with</h5>
<div className="GrantAccess__PublicKey">
<KeyIdenticon publicKey={publicKey} />
</div>
Expand Down
8 changes: 6 additions & 2 deletions extension/src/popup/views/ReviewAuth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ export const ReviewAuth = () => {
params.accountToSign,
);

const isLastEntry = activeAuthEntryIndex + 1 === op.auth?.length;

return isPasswordRequired ? (
<VerifyAccount
isApproval
Expand Down Expand Up @@ -144,12 +146,14 @@ export const ReviewAuth = () => {
size="md"
isLoading={isConfirming}
onClick={() =>
activeAuthEntryIndex + 1 === op.auth?.length
isLastEntry
? setHasConfirmedAuth(true)
: setActiveAuthEntryIndex(activeAuthEntryIndex + 1)
}
>
{t("Approve and review next")}
{isLastEntry
? t("Approve and continue")
: t("Approve and review next")}
</Button>
)}

Expand Down

0 comments on commit a530ab4

Please sign in to comment.