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

add validation to the code #61

Closed
wants to merge 1 commit into from
Closed

Conversation

priyanshee1604
Copy link

Related Issues

Closes #

Short Description and Why It's Useful

Screenshots of Visual Changes before/after (If There Are Any)

IMPORTANT NOTICE - Remember to add changelog entry

Contribution and Currently Important Rules Acceptance

@priyanshee1604
Copy link
Author

i tried to resolve the error by adding the isValidOMS function in the action. partially resolved the issue .

@@ -31,9 +34,26 @@ export const useAuthStore = defineStore('authStore', {
return baseURL.startsWith('http') ? baseURL : `https://${baseURL}.hotwax.io/api/`
},
getRedirectUrl: (state) => state.redirectUrl,

isValidOMS(oms)=>{
if(oms === "dev-apps"){
Copy link
Contributor

Choose a reason for hiding this comment

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

Here we have hardcoded the oms value, but then this condition will always return false if we have used any other oms which is not correct.
Need to have some robust solution that can handle all the oms and we also don't need to hardcode oms names for checking.

@ymaheshwari1
Copy link
Contributor

Closing as need to find some solution that can handle all the oms instances.

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.

2 participants