fix sequence of events

This commit is contained in:
zsviczian authored and GitHub committed 2023-11-25 12:01:19 +01:00
1 parent dd8a7d41e2
commit 347177f873
1 file changed
+1 -1
+1 -1
View File
@@ -1,10 +1,10 @@
import { sanitizeUrl } from "@braintree/sanitize-url";
export const normalizeLink = (link: string) => {
link = link.trim();
if (!link) {
return link;
}
link = link.trim();
return sanitizeUrl(link);
};