quotes-nextjs

My favourite quotes. (nextjs)
git clone http://git.hanabi.in/repos/quotes-nextjs.git
Log | Files | Refs | LICENSE

commit 618f40ff2e613cc529d822dfecb993dfbc63ac16
parent 803a9bc662a1ae3d94bc9519217e506f9cc206e7
Author: Agastya Chandrakant <me@hanabi.in>
Date:   Sun, 18 Apr 2021 18:32:52 +0530

fix missing query params

Diffstat:
MhelperFns.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/helperFns.js b/helperFns.js @@ -86,6 +86,7 @@ export function createQuoteObj(author, data, quote) { function extractInfoFrom(router) { const { q } = router.query; + if(!q) router.replace("/400"); let [and, or] = [false, false]; if (q.includes(",")) and = true; if (q.includes("|")) or = true;