mirror of
https://github.com/Aviortheking/codestats-skyline.git
synced 2025-04-22 02:02:09 +00:00
fix: undefined being displayed on final render
Signed-off-by: Avior <f.bouillon@aptatio.com>
This commit is contained in:
parent
e27d42d37d
commit
2bb86f5fd8
2
main.ts
2
main.ts
@ -102,7 +102,7 @@ export const generateThingy = async (username: string, filterYear?: number): Pro
|
|||||||
final += `max = ${max};\n`
|
final += `max = ${max};\n`
|
||||||
final += `min = ${min};\n`
|
final += `min = ${min};\n`
|
||||||
final += `text = "${username}";\n`
|
final += `text = "${username}";\n`
|
||||||
final += `year = "${filterYear}";\n`
|
final += `year = "${filterYear ?? ''}";\n`
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== 'production') {
|
if (process.env.NODE_ENV !== 'production') {
|
||||||
console.log(final)
|
console.log(final)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user