Skip to content

Commit

Permalink
Fix typo in StashedOnly function and update documentation link in CON…
Browse files Browse the repository at this point in the history
…TRIBUTING.md (MystenLabs#18153)

## Description 

This pull request includes two changes:

1. Fixes a typo in the `StashedOnly` function. The variable
`curentWallet` has been corrected to `currentWallet`.
2. Updates the documentation link in the `CONTRIBUTING.md` file to
reflect the correct URL from `sui.docs.io` to `docs.sui.io`.

## Test plan 

**For `StashedOnly` Function:**
- Verified that the function `StashedOnly` works correctly with the
updated variable name.
- Ensured that there are no errors or warnings after the change.
- Manually tested the functionality to confirm that it behaves as
expected with the correct variable name.

**For Documentation Link:**
- Verified that the new link directs to the correct site.
- Checked that the "Edit this page" link works correctly with the
updated URL.

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
  • Loading branch information
karangoraniya authored Jun 10, 2024
1 parent b97a80b commit 5eb2629
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ If you want to contribute code that creates a feature on Sui, start with a [Sui

Found a bug or security vulnerability? Create a [GitHub issue](https://github.com/MystenLabs/sui/issues/new/choose).

Found a small error or typo in the documentation? Each page on the [sui.docs.io](https://sui.docs.io) site includes an **Edit this page** link at the bottom that you can use to edit the page in GitHub. The content is located in the docs/content directory of the Sui repo, so you can make a usual PR if you prefer.
Found a small error or typo in the documentation? Each page on the [docs.sui.io](https://docs.sui.io/) site includes an **Edit this page** link at the bottom that you can use to edit the page in GitHub. The content is located in the docs/content directory of the Sui repo, so you can make a usual PR if you prefer.

For larger documentation issues, you can [create an issue](https://github.com/MystenLabs/sui/issues/new/choose) in GitHub. To fix the problem yourself, follow the [documentation contribution](./docs/content/references/contribute/contribution-process.mdx) guidelines.

Expand Down
4 changes: 2 additions & 2 deletions sdk/docs/pages/zksend/dapp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ import { useCurrentWallet } from '@mysten/dapp-kit';
import { STASHED_WALLET_NAME } from '@mysten/zksend';

function StashedOnly() {
const { curentWallet } = useCurrentWallet();
const walletIsStashedWallet = curentWallet?.name === STASHED_WALLET_NAME;
const { currentWallet } = useCurrentWallet();
const walletIsStashedWallet = currentWallet?.name === STASHED_WALLET_NAME;

// rest of component logic...
}
Expand Down

0 comments on commit 5eb2629

Please sign in to comment.