Change react/promise constraints to use tilde operator