Skip to content

Commit

Permalink
Minor copy improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed Aug 2, 2024
1 parent 36c0e08 commit 2d1b513
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions hooks/usePermit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export function usePermit() {
return;
case "error":
if (permitSignError?.message?.startsWith("User rejected the request")) {
addAlert("The signature was declined", {
description: "Nothing has been sent to the network",
addAlert("The transaction signature was declined", {
description: "Nothing will be sent to the network",
timeout: 4 * 1000,
});
} else {
Expand Down
4 changes: 2 additions & 2 deletions plugins/emergency-multisig/hooks/useCreateProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export function useCreateProposal() {
if (status === "idle" || status === "pending") return;
else if (status === "error") {
if (error?.message?.startsWith("User rejected the request")) {
addAlert("The signature was declined", {
description: "Nothing has been sent to the network",
addAlert("The transaction signature was declined", {
description: "Nothing will be sent to the network",
timeout: 4 * 1000,
});
} else {
Expand Down
4 changes: 2 additions & 2 deletions plugins/emergency-multisig/hooks/useProposalApprove.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export function useProposalApprove(proposalId: string) {
if (approveStatus === "idle" || approveStatus === "pending") return;
else if (approveStatus === "error") {
if (approveError?.message?.startsWith("User rejected the request")) {
addAlert("The signature was declined", {
description: "Nothing has been sent to the network",
addAlert("The transaction signature was declined", {
description: "Nothing will be sent to the network",
timeout: 4 * 1000,
});
} else {
Expand Down
4 changes: 2 additions & 2 deletions plugins/emergency-multisig/hooks/useProposalExecute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export function useProposalExecute(proposalId: string) {
if (executingStatus === "idle" || executingStatus === "pending") return;
else if (executingStatus === "error") {
if (executingError?.message?.startsWith("User rejected the request")) {
addAlert("The signature was declined", {
description: "Nothing has been sent to the network",
addAlert("The transaction signature was declined", {
description: "Nothing will be sent to the network",
timeout: 4 * 1000,
});
} else {
Expand Down
4 changes: 2 additions & 2 deletions plugins/emergency-multisig/hooks/usePublicKeyRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export function usePublicKeyRegistry() {
debounce(() => refetch(), 800);

if (error?.message?.startsWith("User rejected the request")) {
addAlert("The signature was declined", {
description: "Nothing has been sent to the network",
addAlert("The transaction signature was declined", {
description: "Nothing will be sent to the network",
timeout: 4 * 1000,
});
} else {
Expand Down
4 changes: 2 additions & 2 deletions plugins/members/hooks/useAnnounceDelegation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export function useAnnounceDelegation(onSuccess?: () => void) {
if (status === "idle" || status === "pending") return;
else if (status === "error") {
if (error?.message?.startsWith("User rejected the request")) {
addAlert("The signature was declined", {
description: "Nothing has been sent to the network",
addAlert("The transaction signature was declined", {
description: "Nothing will be sent to the network",
timeout: 4 * 1000,
});
} else {
Expand Down
4 changes: 2 additions & 2 deletions plugins/members/hooks/useDelegateVotingPower.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export const useDelegateVotingPower = (targetAddress: Address, onSuccess?: () =>
if (status === "idle" || status === "pending") return;
else if (status === "error") {
if (error?.message?.startsWith("User rejected the request")) {
addAlert("The signature was declined", {
description: "Nothing has been sent to the network",
addAlert("The transaction signature was declined", {
description: "Nothing will be sent to the network",
timeout: 4 * 1000,
});
} else {
Expand Down
4 changes: 2 additions & 2 deletions plugins/multisig/hooks/useCreateProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export function useCreateProposal() {
if (status === "idle" || status === "pending") return;
else if (status === "error") {
if (error?.message?.startsWith("User rejected the request")) {
addAlert("The signature was declined", {
description: "Nothing has been sent to the network",
addAlert("The transaction signature was declined", {
description: "Nothing will be sent to the network",
timeout: 4 * 1000,
});
} else {
Expand Down
4 changes: 2 additions & 2 deletions plugins/multisig/hooks/useProposalApprove.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export function useProposalApprove(proposalId: string) {
if (approveStatus === "idle" || approveStatus === "pending") return;
else if (approveStatus === "error") {
if (approveError?.message?.startsWith("User rejected the request")) {
addAlert("The signature was declined", {
description: "Nothing has been sent to the network",
addAlert("The transaction signature was declined", {
description: "Nothing will be sent to the network",
timeout: 4 * 1000,
});
} else {
Expand Down
4 changes: 2 additions & 2 deletions plugins/multisig/hooks/useProposalExecute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export function useProposalExecute(proposalId: string) {
if (executingStatus === "idle" || executingStatus === "pending") return;
else if (executingStatus === "error") {
if (executingError?.message?.startsWith("User rejected the request")) {
addAlert("The signature was declined", {
description: "Nothing has been sent to the network",
addAlert("The transaction signature was declined", {
description: "Nothing will be sent to the network",
timeout: 4 * 1000,
});
} else {
Expand Down
4 changes: 2 additions & 2 deletions plugins/optimistic-proposals/hooks/useProposalExecute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export function useProposalExecute(index: number) {
if (executingStatus === "idle" || executingStatus === "pending") return;
else if (executingStatus === "error") {
if (executingError?.message?.startsWith("User rejected the request")) {
addAlert("The signature was declined", {
description: "Nothing has been sent to the network",
addAlert("The transaction signature was declined", {
description: "Nothing will be sent to the network",
timeout: 4 * 1000,
});
} else {
Expand Down
4 changes: 2 additions & 2 deletions plugins/optimistic-proposals/hooks/useProposalVeto.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export function useProposalVeto(index: number) {
if (vetoingStatus === "idle" || vetoingStatus === "pending") return;
else if (vetoingStatus === "error") {
if (vetoingError?.message?.startsWith("User rejected the request")) {
addAlert("The signature was declined", {
description: "Nothing has been sent to the network",
addAlert("The transaction signature was declined", {
description: "Nothing will be sent to the network",
timeout: 4 * 1000,
});
} else {
Expand Down

0 comments on commit 2d1b513

Please sign in to comment.