Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor copy improvement #28

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading