fix sequence of events
This commit is contained in:
parent
dd8a7d41e2
commit
347177f873
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user