Thanks for the report. Nothing was lost: the Shovel row was counting only the Shovel in use, not the whole stack. The player you gave them to had an old Shovel on its last dig, so it read 3 Shovels with 1 dig left even though the two you gave were whole. Their next dig wore out the old one, which is why it jumped back to 50.
In the next update the row counts every dig across all your Shovels, so that stack would read 101 digs left. One thing works this way on purpose: the wear is yours, not the Shovel's. A Shovel you give away always arrives whole, and if you give away your last one, the next one you get starts where yours left off.