online i94 expiry date different from i94 attached in i797A

Hi,

My passport expires in 2019. online i94 expiry date shows 2019. I have an approved h1b (i797A) till 2020, the i94 attached at the bottom shows 2020. I have not traveled outside of USA since 2015. I do not have a stamped visa on old passport.

Will passport renewal be enough to stay and work legally. Do I need to update the online i94 also? i94 in i797A is not the valid one?

Thanks,

Sharadha