Skip to content

Conversation

@ernest-deriv
Copy link
Collaborator

No description provided.

v0 bot and others added 6 commits November 4, 2025 13:28
Update function to accept optional currency parameter for ad filtering.

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
Update function to accept optional currency parameter for ad filtering.

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
Update function to accept optional currency parameter for ad filtering.

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
Update API to accept account_currency and add currency filter

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
Replace AdsAPI.getCurrencies with useAccountCurrencies hook

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
Replace AdsAPI.getCurrencies with useAccountCurrencies hook

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
@vercel
Copy link
Contributor

vercel bot commented Nov 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
v0-p2-p-v2 Ready Ready Preview Comment Nov 5, 2025 6:40am

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
Number(advert.completed_order_amount || 0),
currency: accountCurrency,
},
paymentMethods: advert.payment_methods || [],
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this change needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Reverted this change. It was unintentional.

app/ads/page.tsx Outdated
Comment on lines 82 to 88
useEffect(() => {
if (accountCurrencies.length > 0 && !selectedCurrency) {
const defaultCurrency = accountCurrencies.find((c) => c.code === "USD")?.code || accountCurrencies[0]?.code || ""
setSelectedCurrency(defaultCurrency)
}
}, [accountCurrencies, selectedCurrency])

Copy link
Collaborator

Choose a reason for hiding this comment

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

do we need this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@farrah-deriv Here I am setting default currency to USD in case its available, else selecting the first available currency.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@farrah-deriv this change is reverted.

v0 bot and others added 2 commits November 5, 2025 04:10
Update workflows, tests, and components for new changes.

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
Update workflows, tests, and components for new changes.

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
v0 bot and others added 3 commits November 5, 2025 04:15
Update workflows, tests, components, and stylesheets.

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
Update workflows, tests, components, and global styles

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
Eliminate duplicate logic handled in useAccountCurrencies hook.

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
v0 bot and others added 4 commits November 5, 2025 05:52
Initialize default currency and trigger fetch on selection change

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
Use first currency from accountCurrencies as fallback in fetch.

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
Use first currency from accountCurrencies as fallback

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
Remove default currency useEffect and set default in fetchAds.

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
v0 bot and others added 2 commits November 5, 2025 06:20
Remove default currency useEffect and set default in fetchAds

#VERCEL_SKIP

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
Update workflows, tests, components, and README.

Co-authored-by: null <120568427+ernest-deriv@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants