function inputHandler (e) {
      let { value, id } = e.target;
      if (id === 'receiver_phone') {
        value = value.replace(/\D+/g, '');
      }
      form[id] = value;
      renderDetails() 
    }
// Callback function to handle email and password imput
Callback function to handle email and password imput
Callback function to handle email and password imput
function inputHandler (e) {
      let { value, id } = e.target;
      if (id === 'receiver_phone') {
        value = value.replace(/\D+/g, '');
      }
      form[id] = value;
      renderDetails() 
    }
function inputHandler ( e ) { let { value , id } = e . target ; if ( id === 'receiver_phone' ) { value = value . replace ( / \D+ / g , '' ) ; } form [ id ] = value ; renderDetails ( ) }
Callback function to handle email and password imput
Callback function to handle email and password imput