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

Fixes: polls not being fetched by pollId, markdown overflow on create page #800

Merged
merged 6 commits into from
Jul 5, 2023

Conversation

hernandoagf
Copy link
Collaborator

@hernandoagf hernandoagf commented Jun 30, 2023

#798 polls not being fetched by pollId
#801 markdown overflow on create page

@vercel
Copy link

vercel bot commented Jul 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
governance-portal-v2 ✅ Ready (Inspect) Visit Preview Jul 5, 2023 0:13am

Co-authored-by: Phil Bain <bain.pmcg@gmail.com>
@adamgoth adamgoth changed the title Fix: polls not being fetched by pollId Fixes: polls not being fetched by pollId, markdown overflow on create page Jul 5, 2023
Copy link
Collaborator

@torhector2 torhector2 left a comment

Choose a reason for hiding this comment

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

LGTM. Just a minor comment, not need to address it here.

@@ -43,10 +45,12 @@ export async function fetchSinglePoll(
const cachedPoll = await cacheGet(pollDetailsCacheKey, network, ONE_WEEK_IN_MS, 'HGET', String(pollId));
if (cachedPoll) {
return JSON.parse(cachedPoll);
} else {
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need the else here, just return null.

Not blocking though.

@adamgoth adamgoth merged commit 2fa5a5c into master Jul 5, 2023
4 of 7 checks passed
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.

None yet

4 participants