Closed ericrommel closed 1 year ago
@ericrommel could you assign this to me? Thanks
Hey, @ericrommel checking the code above, it seems to be not possible to reproduce this error:
{!rescheduleUid && eventType?.recurringEvent?.freq && recurringStrings.length > 5 && (
<div className="flex">
<Tooltip
content={recurringStrings.slice(5).map((timeFormatted, key) => (
<p key={key}>{timeFormatted}</p>
))}>
<p className=" text-sm">
+ {t("plus_more", { count: recurringStrings.length })}
</p>
</Tooltip>
</div>
)}
Do you think I'm missing something?
In order to avoid a negative length we can use the +
to convert a string representation of a number to a number.
Hey @kemilbeltre, where are you testing that? Are using the Vercel preview?
Hey @kemilbeltre, where are you testing that? Are using the Vercel preview?
Hi @ericrommel I'm just running the app locally. I don't have a user to access Vercel Preview. :)
Found a bug? Please fill out the sections below. 👍
Issue Summary
When there are 5 or less than that, it's showing 0 or the difference between 5 and the recurring numbers. Also, an empty/blank notification box is shown.
Steps to Reproduce
Tested on Vercel preview (https://cal-5luk9i0hk-cal.vercel.app/event-types)
Technical details