Skip to content

Commit

Permalink
fix: Properly identify wether port has changed or not
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkr00t committed Mar 5, 2018
1 parent bb74da1 commit 0cb8b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/params.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function updatePort(
): Promise<{ port: string | number, oldPort?: string | number }> {
const newPort = await detectPort(parseInt(port, 10), host);

if (port !== newPort) {
if (parseInt(port, 10) !== newPort) {
return { oldPort: port, port: newPort };
}

Expand Down

0 comments on commit 0cb8b6b

Please sign in to comment.