Small catch in useQueryNumber: if the URL has an empty value like ?rate=, get returns an empty string, Number('') is 0, and 0 passes the isFinite check. So a half-edited link shows a rate of 0 instead of the fallback. Treating raw === '' like null fixes it, and for a pay calculator a silent zero is the number people would trust least.
Tarun Sharma
React.js Frontend Web Developer | Next.js Specialist
Small catch in useQueryNumber: if the URL has an empty value like ?rate=, get returns an empty string, Number('') is 0, and 0 passes the isFinite check. So a half-edited link shows a rate of 0 instead of the fallback. Treating raw === '' like null fixes it, and for a pay calculator a silent zero is the number people would trust least.