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

Fixed Axies not showing on cards #6

Merged
merged 2 commits into from Oct 10, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions pages/scholars/_id/index.vue
Expand Up @@ -114,6 +114,8 @@ export default {
methods: {
async getUserAxies(wallet) {
try {
var splitAddress = wallet.split("ronin:");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor this to

const wallet = `0x${this.$stringUtil.extractRoninAddress(wallet)}`

wallet = "0x" + splitAddress[1];
const response = await this.$axios.$get(
`${AXIE_RAPID_API_BASE_URL}/get-axies/${wallet}`,
{
Expand Down